﻿using Meiam.System.Interfaces.IService;
using Meiam.System.Model.Entity;
using Meiam.System.Model;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Meiam.System.Interfaces
{
    public class WMSTokenCheckService : SqlSugarBase<WMS_PoTokenCheck>, IWMSTokenCheckService
    {
        public WMSTokenCheckService(IConfiguration _configuration)
        {
            base.connectionString = _configuration.GetConnectionString("WMSDbConnection");
        }




        /// <summary>
        /// Token查询
        /// </summary>
        /// <returns></returns>
        public List<WMS_PoTokenCheck> GetTokenCheckData(string supplier_code)
        {


            string sql = @"SELECT * FROM GK_Supplier_Token where supplier_code='"+ supplier_code + "'";
            return base.Query(sql);
        }
    }


}
